<?php require_once("php/addressBookAe.php"); ?>
<?php include_once("header.inc.php");?>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<tr align="center">
	<td colspan="2">
		<TABLE id="Table6" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">													
			<TR>
				<TD width="200" valign="top" class="left_bg" align="right" ><br><?php include("left.inc.php");?></td>
				<td height="10" valign="top" bgcolor="#E6ECF7">			
					<table width="100%"  border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="100%" align="center" valign="top" class="mainBoxBg">
								<table width="100%"  border="0" cellpadding="0" cellspacing="1" >
									<tr>
										<td  align="left" background="images/heading_bg.gif" bgcolor="#FFFFFF" class="h1">
											<table   border="0" cellspacing="0" cellpadding="0" align="left" width="100%">
												<tr>
													<td height="42" background="images/bg3.gif" width="53"  class="h1" align="right"><img src="images/cp_icon.gif" width="25" height="25" hspace="5"></td>
													<td height="42"  background="images/bg3.gif"  align="left" class="h1">Address   Manager</td>
													<td height="42"  background="images/bg3.gif"  align="right" class="h1"><a href='addressBookManager.php' class="blue_txt"><u>Back to Address list</u></a>&nbsp;&nbsp;</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td height="272" align="center" valign="top" class="mainBoxBg" >
											<table width="100%"  border="0" cellpadding="0" cellspacing="1" class="mainBoxBg">										
												<tr>
													<td height="372" align="center" valign="top" bgcolor="F0EEEC" class="mainBoxBg">
													<br><?php displaySessMesg(); ?><br />
														<table width="63%"  border="0" align="center" cellpadding="6" cellspacing="1" class="tblBg">
														<form name="frm" action="" method="post" enctype="multipart/form-data" onSubmit="return validateAddress_admin(this)">
															<tr>
																<td colspan="2" class="header_row">
																	<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
																		<tr>
																			<td height="20" class="gray_txt"><strong>Address Detail</strong></td>
																			<td align="right" class="gray_txt">Required Fields <span class="redtxt">*</span></td>
																		</tr>
																	</table>																</td>
															</tr>	
															<tr class="evenRow">
															  <td align="right" class="gray_txt">Category <span class="redtxt">*</span></td>
															  <td><?php echo getCategoryCombo($comboName='category',$class='textbox',$selectedValue = $category ,$extra = '') ?></td>
														  </tr>
															<tr class="evenRow">
                                                              <td align="right" class="gray_txt">Organization Type<span class="redtxt"> *</span> </td>
															  <td><?php echo getCombo($arrOrganiationType,$comboName='organizationType',$class='textbox',$selectedValue = $organizationType, $extra = ''); ?></td>
														  </tr>
															<tr class="oddRow">
															  <td class="gray_txt" align="right">Organization <span class="redtxt">*</span></td>
															  <td class="gray_txt"><input type="text" value="<?=$organizationName?>" class="textbox" name="organizationName" /></td>
														  </tr>
															<tr class="evenRow">
																<td  width="32%"class="gray_txt" align="right">First Name <span class="redtxt">*</span></td>
																<td width="68%" class="gray_txt"><input name="firstName" type="text" class="textbox" value="<?=$firstName?>" size="24"></td>
															</tr>
															<tr class="oddRow">
                                                              <td class="gray_txt" align="right">Middle Name</td>
															  <td class="gray_txt"><input name="middleName" type="text" class="textbox" value="<?=$middleName?>" size="24" /></td>
														  </tr>
															<tr class="evenRow">
																<td class="gray_txt" align="right">Last Name <span class="redtxt">*</span></td>
																<td class="gray_txt"><input name="lastName" type="text" class="textbox" value="<?=$lastName?>" size="24"></td>
															</tr>
															<tr class="oddRow">
																<td class="gray_txt" align="right">Contact Designation</td>
																<td class="gray_txt"><input name="designation" type="text" class="textbox" value="<?=$designation?>" size="24" /></td>
															</tr>
															
															<tr class="evenRow">
																<td class="gray_txt" align="right">Address 1</td>
																<td class="gray_txt"><input name="address" type="text" class="textbox" value="<?=$address?>" size="24"></td>
															</tr>
															<tr class="oddRow">
																<td class="gray_txt" align="right">Address 2</td>
																<td class="gray_txt"><input name="address2" type="text" class="textbox" value="<?=$address2?>" size="24"></td>
															</tr>
															<tr class="evenRow">
																<td  width="32%"class="gray_txt" align="right">City</td>
																<td width="68%" class="gray_txt"><input name="city" type="text" class="textbox" value="<?=$city?>" size="24"></td>
															</tr>
															<tr class="oddRow">
																<td align="right" class="gray_txt">State</td>
																<td><input name="state" type="text" class="textbox" value="<?=$state?>" size="24"></td>
															</tr>
															<tr class="evenRow">
																<td align="right" class="gray_txt">Country</td>
																<td><?=getCountryCombo($comboName='country',$class='textbox',$selectedValue = $country,$extra = '')?></td>
															</tr>
															<tr class="oddRow">
																<td class="gray_txt" align="right">Zip Code</td>
																<td class="gray_txt"><input name="zipCode" type="text" class="textbox" value="<?=$zipCode?>" size="24"></td>
															</tr>
															<tr class="evenRow">
																<td class="gray_txt" align="right"> Telephone/Mobile 1 </td>
																<td class="gray_txt"><input name="phone" type="text" class="textbox" value="<?=$phone?>" size="24"></td>
															</tr>															
															<tr class="evenRow">
                                                              <td class="gray_txt" align="right"> Telephone/Mobile 2 </td>
															  <td class="gray_txt"><input name="phone1" type="text" class="textbox" value="<?=$phone1?>" size="24" /></td>
														  </tr>
															<tr class="evenRow">
                                                              <td class="gray_txt" align="right"> Telephone/Mobile 3 </td>
															  <td class="gray_txt"><input name="phone2" type="text" class="textbox" value="<?=$phone2?>" size="24" /></td>
														  </tr>
															<tr class="evenRow">
                                                              <td class="gray_txt" align="right"> Telephone/Mobile 4 </td>
															  <td class="gray_txt"><input name="phone3" type="text" class="textbox" value="<?=$phone3?>" size="24" /></td>
														  </tr>
															<tr class="evenRow">
                                                              <td class="gray_txt" align="right"> Telephone/Mobile 5 </td>
															  <td class="gray_txt"><input name="phone4" type="text" class="textbox" value="<?=$phone4?>" size="24" /></td>
														  </tr>
															
														    <tr class="oddRow">
                                                              <td class="gray_txt" align="right">Fax</td>
														      <td class="gray_txt"><input name="fax" type="text" class="textbox" value="<?=$fax?>" size="24" /></td>
													      </tr>
													      <tr class="oddRow">
																<td class="gray_txt" align="right">Primary Email Address <span class="redtxt">*</span></td>
																<td class="gray_txt"><input name="email" type="text" class="textbox" value="<?=$email?>" size="24"></td>
															</tr>
															

															<tr class="oddRow">
                                                              <td class="gray_txt" align="right">Secondary Email Address <span class="redtxt">*</span></td>
															  <td class="gray_txt"><input name="secondaryEmail" type="text" class="textbox" value="<?=$secondaryEmail?>" size="24" /></td>
														  </tr>
															<tr class="oddRow">
                                                              <td class="gray_txt" align="right">Website</td>
															  <td class="gray_txt"><input name="website" type="text" class="textbox" value="<?=$website?>" size="24" /></td>
														  </tr>
															<tr class="oddRow">
															  <td align="right" valign="top" class="gray_txt">Remarks </td>
															  <td class="gray_txt">
															  	<textarea name="remarks" cols="40" rows="7" class="textbox"><?=$remarks?></textarea>															  </td>
															  </tr>															
															<tr class="evenRow">
																<td class="gray_txt">&nbsp;</td>
																<td class="gray_txt"> <input name="Submit" type="submit" class="buttons" value="Submit" ></td>
														  </tr>															
														  </form>
													  </table>
														<br>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</TR>
		</TABLE>
	</td>
</tr>
<?php include ("footer.inc.php"); ?>